package myTest.classAndInterface

import myTest.enumPackage.Gender
import kotlin.math.max

fun main(args: Array<String>) {
    println(max(1,2))
    //不需要new关键字
    val person = Person(1,"董棉生",Gender.MAN)

    println("ManString=${Gender.MAN.gender}")

    println("Hello\tid=${person.id}\tuserName=${person.name}\tmarried=${person.isMarried}")
    //相当于person.setUserName()
    person.name="陈志豪"

    //使用\$转义输出$
    println("Hello\tid=${person.id}\tuserName=${person.name}\t\$\tisMan=${person.isMan}")
}